import request from '@/utils/http'
export function downloadReport(params) {
  return request({
    url: '/zb/downloadReport',
    method: 'post',
    params: params
  })
}
// ​/api​/course​/playbacks​/{catalogId}​/{filename}课程播放
export function playbacks(params) {
  let { catalogId, filename } = params
  return request({
    url: `/api/course/playbacks/${catalogId}/${filename}`,
    method: 'get'
  })
}
export function getCatalog(params) {
  return request({
    url: '/api/course/catalog',
    method: 'post',
    params: params
  })
}
// 间隔一段时间调用 保存观看的进度
export function keepTime(params) {
  return request({
    url: '/api/course/keeptime',
    method: 'post',
    params: params
  })
}
